<?php
namespace app\index\controller;

class Index
{
    public function index()
    {
        $arr = [1, 2, 3];
        foreach ($arr as $key => $value) {
            echo $key."<br>";
        }
    }
}
